package edu.ymu.cms.service;

import edu.ymu.cms.model.*;

import java.util.List;

public interface ManageService {

      public boolean addNews(News news);
      public boolean deleteNews(String id);
      public boolean updateNews(News news);
      public News getNews(String id);
      public List<News> getNewsList();


      public boolean addCarousel(Carousel carousel);
      public boolean deleteCarousel(String id);
      public boolean updateCarousel(Carousel carousel);
      public Carousel getCarousel(String id);
      public List<Carousel> getCarouselList();


      public boolean addSinglepage(Singlepage singlepage);
      public boolean deleteSinglepage(String id);
      public boolean updateSinglepage(Singlepage singlepage);
      public Singlepage getSinglepage(String id);
      public List<Singlepage> getSinglepageList();

      public Users getUsersByUsernameAndPass(String username,String pass);


      public String getCurrentUserId();
      public String getCurrentUserRole();


      //科目表
      public boolean addBook(Book book);
      public boolean deleteBook(String id);
      public boolean updateBook(Book book);
      public Book getBook(String id);
      public List<Book> getBookList();

      //课程表
      public boolean addCourse(Course course);
      public boolean deleteCourse(String id);
      public boolean updateCourse(Course course);
      public Course getCourse(String id);
      public  List<Course> getCourseListByBook(String id);
      public  List<Course> getCourseListByStudent(String id);
      public  List<Course> getCourseListByClassroom(String id);
      public  List<Course> getCourseListByTeacher(String id);
      public  List<Course> getCourseList();


      //教室表
      public boolean addClassroom(Classroom classroom);
      public boolean deleteClassroom(String id);
      public boolean updateClassroom(Classroom classroom);
      public Classroom getClassroom(String id);
      public List<Classroom> getClassroomList();

      //班级表
      public boolean addStudent(Student student);
      public boolean deleteStudent(String id);
      public boolean updateStudent(Student student);
      public Student getStudent(String id);
      public List<Student> getStudentList();

      //教师表
      public boolean addTeacher(Teacher teacher);
      public boolean deleteTeacher(String id);
      public boolean updateTeacher(Teacher teacher);
      public Teacher getTeacher(String id);
      public List<Teacher> getTeacherList();


}
